/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.sunspotworld.sensortasks.routingtasks;

import org.sunspotworld.sensortasks.SensorTask;

/**
 *
 * @author me
 */
public class AdvBidScheduleTask extends SensorTask {
    private DataRoutingTask owner;
    private int scheduledSlot;
    
    public AdvBidScheduleTask(long sample, DataRoutingTask task, int slot) {
        super.sampleInterval = sample;
        owner = task;
        scheduledSlot = slot;
    }
    
    private AdvBidScheduleTask(long sample, long id, DataRoutingTask task, int slot) {
        super.sampleInterval = sample;
        super.id = id;
        owner = task;
        scheduledSlot = slot;
    }
    
    protected SensorTask copy() {
        SensorTask task = (SensorTask)new AdvBidScheduleTask(super.sampleInterval, super.id, owner, scheduledSlot);
        task.setRepeat(super.repeating);
        return task;
    }
    
    public void runTask() {
        
    }

}
